<template>
    <div v-if="active" class="main" @click="active = false"></div>
</template>

<script>import { ref } from "@vue/reactivity"

export default {
    setup() {
        const active = ref(false)

        return { active }
    }
}
</script>

<style lang="less" scoped>
.main {
    position: fixed;
    z-index: 2000;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
}
</style>